<template>
    <div class="item">
        <img :src="item.pic" >
        <div class="item_right">
            <div class="title">{{ item.title }}</div>
            <div class="sales">月售：{{ item.sales }}</div>
            <div class="price">起送：{{ item.price }}  免配送费</div>
            <div>
                <span v-for="s in item.label">{{ s }}</span>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        props:['item']
    }
</script>

<style lang="less">
    .item{
        display: flex;

       img{
           width: 50px;
           height: 50px;
       }

       .item_right{
           margin-left: 40px;
           line-height: 15px;

           .title{
               font-size: 10px;
               font-weight: bold;
           }

           span{
            background-color: pink;
            padding: 2px 2px;
            border-radius: 4px;
           }
        }

    }
</style>